package com.huoshan.im.server.action;

import com.huoshan.im.server.messaging.MessageId;
import lombok.extern.slf4j.Slf4j;
import online.chazi.netkit.action.SocketAction;
import online.chazi.netkit.messaging.Message;

/**
 * 说明: 处理客户端的心跳
 */

@Slf4j
public class HeartbeatAction extends SocketAction {
    @Override
    public void execute(Message message) {
        this.getSession().sendMessage(new Message(MessageId.NORMAL_HEARTBEAT_RECEIVED.id,
                MessageId.NORMAL_HEARTBEAT_RECEIVED.meaning));
    }
}
